package com.king.designpatterns.行为模式.观察者模式;

/**
 * 具体观察者 - 修改颜色观察者
 *
 * @author king
 * @date 2021-06-10 18:38
 */
public class ChangeColorObserver implements ClickableObserver {
    @Override
    public void clicked(Clickable clickable) {
        Button b = (Button) clickable;
        b.color = "红色";
    }
}
